package com.exmple.service.impl;

import com.exmple.dao.IUserDao;
import com.exmple.model.User;
import com.exmple.service.IUserService;
import lombok.Setter;


public class UserServiceImpl6 implements IUserService {
    @Setter
    private IUserDao userDao;
    UserServiceImpl6(){
        System.out.println("创建...666");
    }

    @Override
    public User getUserById() {
        int id=5;
        User user =userDao.getUserById(id);
        System.out.println("service二次调用");
        System.out.println("id="+user.getId());
        return null;
    }
   public void init(){
       System.out.println("初始化");
   }
   public void destroy(){
       System.out.println("销毁");
   }
}
